<template>
  <div class="demo-page-layout">
    <div class="demo-page-header">
      <div class="demo-page-header-title">
        <div class="demo-page-header-title-text">
          <slot name="title"></slot>
        </div>
      </div>
      <div class="demo-page-header-actions">
        <slot name="actions"></slot>
      </div>
    </div>
    <div class="demo-page-header-content">
      <DemoPageMd :fileName="mdFileName"/>
      <slot></slot>
    </div>
  </div>
</template>

<script>
import DemoPageMd from './DemoPageMd.vue'

export default {
  props: {
    mdFileName: {
      type: String,
      required: true
    }
  },
  components: {
    DemoPageMd
  },
  data() {
    return {
      loading: false,
      code: ""
    }
  },
}
</script>

<style scoped>
.demo-page-layout {
  padding: 10px;
}
.demo-page-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.demo-page-header-title-text{
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

</style>